#include <stdio.h>

int main()
{
    printf("%d\n", getchar()!=EOF);
    return 0;
}

